package vista;
import java.awt.BorderLayout;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class JFrameMenu extends javax.swing.JFrame {
	private JLabel lblnombre;
	private JPanel pnPrincipal;
	private JMenuBar mnuPrincipal;
	private JMenu jMenu1;
	private JMenu jMenu2;
	private JMenu mnuSalir;
	private JMenuItem mnuConsultarPlanteamiento;
	private JMenuItem mnuRegistrodePlanteamiento;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				JFrameMenu inst = new JFrameMenu();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public JFrameMenu() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				pnPrincipal = new JPanel();
				getContentPane().add(pnPrincipal, BorderLayout.CENTER);
				pnPrincipal.setLayout(null);
				pnPrincipal.setBackground(new java.awt.Color(7,110,169));
			}
			{
				mnuPrincipal = new JMenuBar();
				setJMenuBar(mnuPrincipal);
				mnuPrincipal.setBackground(new java.awt.Color(154,217,238));
				{
					jMenu1 = new JMenu();
					mnuPrincipal.add(jMenu1);
					jMenu1.setText("SIGSAE");
					{
						mnuRegistrodePlanteamiento = new JMenuItem();
						jMenu1.add(mnuRegistrodePlanteamiento);
						mnuRegistrodePlanteamiento.setText("Registro de Planteamiento");
						mnuRegistrodePlanteamiento.addActionListener(this);
					}
					{
						mnuConsultarPlanteamiento = new JMenuItem();
						jMenu1.add(mnuConsultarPlanteamiento);
						mnuConsultarPlanteamiento.setText("Consultar Planteamiento");
					}
				}
				{
					mnuSalir = new JMenu();
					mnuPrincipal.add(mnuSalir);
					mnuSalir.setText("Ayuda");
				}
				{
					jMenu2 = new JMenu();
					mnuPrincipal.add(jMenu2);
					jMenu2.setText("Salir");
				}
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	public JLabel getLblnombre() {
		return lblnombre;
	}
	
	/**
	* Auto-generated method for setting the popup menu for a component
	*/
	private void setComponentPopupMenu(final java.awt.Component parent, final javax.swing.JPopupMenu menu) {
		parent.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mousePressed(java.awt.event.MouseEvent e) {
				if(e.isPopupTrigger())
					menu.show(parent, e.getX(), e.getY());
			}
			public void mouseReleased(java.awt.event.MouseEvent e) {
				if(e.isPopupTrigger())
					menu.show(parent, e.getX(), e.getY());
			}
		});
	}

}
